
<ion-view view-title="人员详情" class="detail">
    <ion-nav-buttons side="right">
        <button class="button button-clear" ng-if="data.fnVisible" ng-click="manageFriend()">
            {{data.isFriend ? "删除好友" : "加入好友"}}
        </button>
    </ion-nav-buttons>
    <ion-header-bar class="bar-subheader">
        <ion-item class="contact">
            <img ng-src="{{data.contact.photo || 'img/default-avatar.png'}}">
            <span>{{data.contact.name}}</span>
            <span class="department">{{data.contact.department}}</span>
        </ion-item>
    </ion-header-bar>
    <ion-content has-bouncing="true">
        <ion-list class="detail-list">
            <ion-item>
                <span>{{'手机： ' + data.contact.tel}}</span>
                <img class="fn-img fn-call" src="img/icon_call.png" ng-click="call(data.contact.tel)">
                <img class="fn-img" src="img/icon_message.png" ng-click="sendMsg(data.contact.tel)">
            </ion-item>
            <ion-item>
                <span>{{'电话： ' + data.contact.phone}}</span>
                <img class="fn-img" src="img/icon_call.png" ng-click="call(data.contact.phone)">
            </ion-item>
            <ion-item>
                <span>{{'邮箱： ' + data.contact.email}}</span>
                <img class="fn-img" src="img/icon_email.png"  ng-click="sendEmail(data.contact.email)">
            </ion-item>
            <ion-item>
                <span>{{'部门： ' + data.contact.department}}</span>
            </ion-item>
            <ion-item>
                <span>{{'职位： ' + data.contact.position}}</span>
            </ion-item>
        </ion-list>
    </ion-content>
</ion-view>